﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BrnMall.Core;
using BrnMall.Manager.Domain.BusinessCard;

namespace QIDong.WeApp.Models
{
    /// <summary>
    /// 名片信息
    /// </summary>
    public class CardActionModel
    {
        public int Id { get; set; }
        /// <summary>
        /// 名片ID
        /// </summary>
        public int CId { get; set; }

        /// <summary>
        /// 动作类型0：未知，1：点赞，2：收藏，3：查看
        /// </summary>
        public int ActionType { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime ActionTime { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public UserInfo ActionUser { get; set; }
    }
    /// <summary>
    /// 用户印象标签详情
    /// </summary>
    public class UserTagHitModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 标签编号
        /// </summary>
        public int UserTagId { get; set; }
        /// <summary>
        /// 添加人
        /// </summary>
        public PartUserInfo HitUser { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime HitTime { get; set; }
    }

    public class TimeLineModel
    {
        public TimeLine TimeLine { get; set; }
        public IList<TimeLineImg> TimeLineImgs { get; set; }
    }

    public class BatchAddUserCardDto
    {
        public IList<UserTag> Tags { get; set; }

        public BatchAddUserCardDto()
        {
            Tags = new List<UserTag>();
        }
    }

    /// <summary>
    /// 用户名片
    /// </summary>
    public class UserCardModel
    {
        /// <summary>
        /// 名片ID
        /// </summary>
        public int CId { get; set; }
        /// <summary>
        /// 店铺ID
        /// </summary>
        public int StoreId { get; set; }
        /// <summary>
        /// 用户信息
        /// </summary>
        public UserInfo User { get; set; }
        /// <summary>
        /// 名片编号
        /// </summary>
        public string CardCode { get; set; }
        /// <summary>
        /// 查看人数
        /// </summary>
        public int Views { get; set; }
        /// <summary>
        /// 点赞人数
        /// </summary>
        public int Praised { get; set; }
        /// <summary>
        /// 收藏人数
        /// </summary>
        public int Favorite { get; set; }
        public bool IsVerify { get; set; }
    }
}